$(function() {
    $('#btnBackToCart').click(function () {
        window.location.href = "cart.jsp";
    });
    $("#btnwrapper").click(function(){
    	console.log($("#address").val());
    	 	
    	if($("#address").val()==""){
    		alert("请输入收货地址");
    	}else if($("input[name='bankId']:checked").val()==null){
    		alert("请选择银行");
    	}else{
    		$("#form1").submit();
    	}
    })
});